package pkg

import (
	client2 "DifProject/client"
)

// Pkg 用户请求包
type Pkg struct {
	Type string         `json:"type"`
	Data client2.Client `json:"data"`
}

type PostPkg struct {
	Type string         `json:"type"`
	Code string         `json:"code"`
	Data client2.Client `json:"data"`
}

// PostListPkg 榜单请求包
type PostListPkg struct {
	Type string          `json:"type"`
	Code string          `json:"code"`
	Data client2.Clients `json:"data"`
}

type StartPkg struct {
	Type string `json:"type"`
	Code string `json:"code"`
}

// Authentication 用户认证
var Authentication = "authentication"

// BuildRoom 创建房间
var BuildRoom = "buildRoom"

// JoinRoom 加入房间
var JoinRoom = "joinRoom"

// CounterpartyData 对方数据
var CounterpartyData = "CounterpartyData"

// GameProgress 游戏进度
var GameProgress = "gameProgress"

// List 排行榜
var List = "list"

// HeartBeat 心跳
var HeartBeat = "check"

// StartGame 开始游戏
var StartGame = "startGame"

// EndGame 结束游戏
var EndGame = "endGame"

// UpdateConn 更新连接
var UpdateConn = "updateConn"
